package com.story.api.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 * @decription
 * @Date 2018-05-11 10:36
 */
@TableName("play_count")
public class PlayCount extends Model<PlayCount> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Date dayPlay;

    private Integer playCount;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDayPlay() {
        return dayPlay;
    }

    public void setDayPlay(Date dayPlay) {
        this.dayPlay = dayPlay;
    }

    public Integer getPlayCount() {
        return playCount;
    }

    public void setPlayCount(Integer playCount) {
        this.playCount = playCount;
    }

    @Override
    public String toString() {
        return "PlayCount{" +
                "id=" + id +
                ", dayPlay=" + dayPlay +
                ", playCount=" + playCount +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
